package com.kuai.common.state;

public enum GenderEnum {
	MAN(0,"男人"),WOMAN(1,"女人"),NEUTRAL(-1,"中性");
	// 成员变量 
	private int value;
	private String name;
	// 构造方法 
	private GenderEnum(int value, String name) {  
        this.value = value;  
        this.name = name;  
    }
	public static String getName(int value) {
		for (GenderEnum s : GenderEnum.values()) {
			return s.name;
		}
		return null;
	}
	public int getValue() {
		return value;
	}
	public void setValue(int value) {
		this.value = value;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	} 

}
